﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using Utilities;

namespace Model
{
    public class Login
    {
        tcdc_mst_user objUser;

        public string strConn { get; set; }

        public Login()
        {
            
        }

        public DataTable verifyLogin(string username, string password)
        {
            DataTable dt;
            objUser = new tcdc_mst_user();
            objUser.strConn = strConn;

            objUser.username = username.Trim();
            objUser.password = Cryptography.GetMd5Hash(password.Trim());
            dt = objUser.getByObject(objUser);

            return dt;
        }
    }
}
